import Vue from 'vue'
import Vuex from 'vuex'
import user from './moudles/user'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user
  },

  plugins: [
    createPersistedState({
      paths: ['user.userList', 'user.lowTime', 'user.token']
    })
  ]
})

export default store
